home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / pipboot / nsIBufEntropyCollector.h next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  114 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIBufEntropyCollector.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIBufEntropyCollector_h__
  6. #define __gen_nsIBufEntropyCollector_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsIEntropyCollector_h__
  14. #include "nsIEntropyCollector.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21.  
  22. /* starting interface:    nsIBufEntropyCollector */
  23. #define NS_IBUFENTROPYCOLLECTOR_IID_STR "485b87a8-5dd7-4b8d-8ea8-dee53201f899"
  24.  
  25. #define NS_IBUFENTROPYCOLLECTOR_IID \
  26.   {0x485b87a8, 0x5dd7, 0x4b8d, \
  27.     { 0x8e, 0xa8, 0xde, 0xe5, 0x32, 0x01, 0xf8, 0x99 }}
  28.  
  29. class NS_NO_VTABLE nsIBufEntropyCollector : public nsIEntropyCollector {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IBUFENTROPYCOLLECTOR_IID)
  33.  
  34.   /**
  35.    * Forward the entropy collected so far to |collector| and then
  36.    * continue forwarding new entropy as it arrives.
  37.    */
  38.   /* void forwardTo (in nsIEntropyCollector collector); */
  39.   NS_IMETHOD ForwardTo(nsIEntropyCollector *collector) = 0;
  40.  
  41.   /**
  42.    * No longer forward to a (possibly) previously remembered collector.
  43.    * Do buffering again.
  44.    */
  45.   /* void dontForward (); */
  46.   NS_IMETHOD DontForward(void) = 0;
  47.  
  48. };
  49.  
  50. /* Use this macro when declaring classes that implement this interface. */
  51. #define NS_DECL_NSIBUFENTROPYCOLLECTOR \
  52.   NS_IMETHOD ForwardTo(nsIEntropyCollector *collector); \
  53.   NS_IMETHOD DontForward(void); 
  54.  
  55. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  56. #define NS_FORWARD_NSIBUFENTROPYCOLLECTOR(_to) \
  57.   NS_IMETHOD ForwardTo(nsIEntropyCollector *collector) { return _to ForwardTo(collector); } \
  58.   NS_IMETHOD DontForward(void) { return _to DontForward(); } 
  59.  
  60. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  61. #define NS_FORWARD_SAFE_NSIBUFENTROPYCOLLECTOR(_to) \
  62.   NS_IMETHOD ForwardTo(nsIEntropyCollector *collector) { return !_to ? NS_ERROR_NULL_POINTER : _to->ForwardTo(collector); } \
  63.   NS_IMETHOD DontForward(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->DontForward(); } 
  64.  
  65. #if 0
  66. /* Use the code below as a template for the implementation class for this interface. */
  67.  
  68. /* Header file */
  69. class nsBufEntropyCollector : public nsIBufEntropyCollector
  70. {
  71. public:
  72.   NS_DECL_ISUPPORTS
  73.   NS_DECL_NSIBUFENTROPYCOLLECTOR
  74.  
  75.   nsBufEntropyCollector();
  76.  
  77. private:
  78.   ~nsBufEntropyCollector();
  79.  
  80. protected:
  81.   /* additional members */
  82. };
  83.  
  84. /* Implementation file */
  85. NS_IMPL_ISUPPORTS1(nsBufEntropyCollector, nsIBufEntropyCollector)
  86.  
  87. nsBufEntropyCollector::nsBufEntropyCollector()
  88. {
  89.   /* member initializers and constructor code */
  90. }
  91.  
  92. nsBufEntropyCollector::~nsBufEntropyCollector()
  93. {
  94.   /* destructor code */
  95. }
  96.  
  97. /* void forwardTo (in nsIEntropyCollector collector); */
  98. NS_IMETHODIMP nsBufEntropyCollector::ForwardTo(nsIEntropyCollector *collector)
  99. {
  100.     return NS_ERROR_NOT_IMPLEMENTED;
  101. }
  102.  
  103. /* void dontForward (); */
  104. NS_IMETHODIMP nsBufEntropyCollector::DontForward()
  105. {
  106.     return NS_ERROR_NOT_IMPLEMENTED;
  107. }
  108.  
  109. /* End of implementation class template. */
  110. #endif
  111.  
  112.  
  113. #endif /* __gen_nsIBufEntropyCollector_h__ */
  114.